package com.sjme.Feign;

import com.sjme.domain.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("user-server")
public interface UserClient {
    @PostMapping("/user/queryUserByCondition")
    List<User> queryUserByCondition(@RequestBody User user);

    @PostMapping("/user/queryUserByIds")
    List<User> queryUserByIds(@RequestBody List<String> userIdList);

    @PostMapping("/user/testAddUser")
    void testAddUser();
}
